package com.kgc.sbt.mapper;

import com.kgc.sbt.beans.UserCoupons;
import com.kgc.sbt.beans.Vip;
import com.kgc.sbt.beans.VipExample;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface VipMapper {
    long countByExample(VipExample example);

    int deleteByExample(VipExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(Vip record);

    int insertSelective(Vip record);

    List<Vip> selectByExample(VipExample example);

    Vip selectByPrimaryKey(Integer userId);

    int updateByExampleSelective(@Param("record") Vip record, @Param("example") VipExample example);

    int updateByExample(@Param("record") Vip record, @Param("example") VipExample example);

    int updateByPrimaryKeySelective(Vip record);

    int updateByPrimaryKey(Vip record);

    Date queryDaysByUserId(Integer userId);

    int selectVipStatusByUserId(Integer userId);

    int updateVipStatus(Vip record);

    Date getEndTimeByUserId(Integer userId);

    int updateVipStatusTOZero(Integer userId);

    Vip queryAllByUserId(Integer userId);


    int insetUserId(Integer userId);

}